from tkinter import *


def greeting():
    print("你好呀")


win = Frame()
win.pack()
Label(win, text="提示文字").pack(side=TOP)
Button(win, text="打招呼", command=greeting).pack(side=LEFT)
Button(win, text="退出", command=quit).pack(side=RIGHT)
win.mainloop()
